MSVC 2008 Builds: Speed Up Release Builds
authorChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 3 Mar 2015 10:40:32 +0000 (18:40 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 3 Mar 2015 10:40:32 +0000 (18:40 +0800)
Use the /MP compiler option, where the build time for release builds can
be cut down by quite a bit.  This will however cause a brief warning with
debug builds due to the use of /Gm, but the code will otherwise build
normally.  Unlike the Visual Studio 2010+ builds, we can't use /d2Zi+ as
Visual Studio 2008 does not support that, so we can't get a better
debugging experience for release builds here.

build/win32/vs9/gtk-build-defines.vsprops

index 35d614d303a242d81202c5aa92f4c7dfea970d22..5f12fd795a8519a85bc5f92ea6c453a906be466f 100644 (file)
@@ -12,6 +12,7 @@
                AdditionalIncludeDirectories="..\..\..;$(GlibEtcInstallRoot)\lib\glib-2.0\include;$(GlibEtcInstallRoot)\include\glib-2.0;$(GlibEtcInstallRoot)\include;$(GlibEtcInstallRoot)\include\cairo;$(GlibEtcInstallRoot)\include\atk-1.0;$(GlibEtcInstallRoot)\include\pango-1.0;$(GlibEtcInstallRoot)\include\gdk-pixbuf-2.0"
                PreprocessorDefinitions="HAVE_CONFIG_H;G_DISABLE_SINGLE_INCLUDES;ATK_DISABLE_SINGLE_INCLUDES;GDK_PIXBUF_DISABLE_SINGLE_INCLUDES;GTK_DISABLE_SINGLE_INCLUDES"
                ForcedIncludeFiles="msvc_recommended_pragmas.h"
+               AdditionalOptions="/MP"
        />
        <Tool
                Name="VCLinkerTool"